<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            height:200px;
            width:200px;
            background-color: pink;
        }

        div p{
            height:50px;
            width:50px;
            background-color: skyblue;
            transition: all 0.5s;
        }

        div p:hover{
            transform: translate(200%,200%);
        }

        .circle{
            border-radius: 200px;
            border-style: solid;
            transition: all 0.5s;
        }

        span{
            display: block;
            margin: 100px auto;
            height:50px;
            width:50px;
        }

        .circle:hover{
            transform: rotate(360deg);
        }
    </style>
</head>
<body>
    <div>
        <p>移动</p>
    </div>

    <div class = "circle">
        <span>旋转</span>
    </div>
</body>
</html>